package com.jt.controller;

import com.jt.service.AuthorityService;
import com.jt.vo.PageResult;
import com.jt.vo.SysResult;
import org.omg.CORBA.PUBLIC_MEMBER;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@CrossOrigin
@RequestMapping("/authority")
public class AuthorityController {

    @Autowired
    AuthorityService  authorityService;


    @GetMapping("/list")
    public  SysResult  getList(PageResult pageResult){
        PageResult authorityList = authorityService.getAuthorityList(pageResult);
        return  SysResult.success(authorityList);
    }




}
